<?php
/**
 * 工具类
 */

class tools {
	
	private $array = array('1','2','3','4','5','6','7','8','9','0','q','w','e','r','t','y','u','i',
			'o','p','a','s','d','f','g','h','j','k','l','z','x','c','v','b','n',
			'm','Q','W','E','R','T','Y','U','I','O','P','A','S','D','F','G','H','J','K','L','Z','X','C','V','',
			'B','N','M'
	);
	
	public function getValidationCode() {
		$code ="";
		for($i = 0 ; $i < 30 ; $i++) {
			$code.= $this->array[rand(0, count($this->array))];
		}
		return $code;
	}
}

